<?php
if (!defined('BOX_HELPER_DEFINED')) {
	define('BOX_HELPER_DEFINED', true);
	
	define('BOX_COLOR_CYAN', 'cyan');
	define('BOX_COLOR_GREEN', 'green');
	define('BOX_COLOR_BLUE', 'blue');
	define('BOX_COLOR_PURPLE', 'purple');
	define('BOX_COLOR_RED', 'red');

	function box_header($title, $color = BOX_COLOR_BLUE) {
		?>
		<div class="b-box b-box-<?=$color?>">
			<div class="header">
				<div class="hlc"><div></div></div>
				<div class="hm"><div></div></div>
				<div class="hrc"><div></div></div>
			</div>
			<div class="caption">
				<div class="blm"></div>
				<div class="bc"><h1><?=$title?></h1></div>
				<div class="brm"></div>
			</div>
			<div class="body">
				<div class="blm"></div>
				<div class="bc">
		<?php 
	}
	
	function box_footer() {
		?>
					</div>
				<div class="brm"></div>
			</div>
			<div class="footer">
				<div class="flc"><div></div></div>
				<div class="fm"><div></div></div>
				<div class="frc"><div></div></div>
			</div>
		</div>
		<?php 
	}
}